home *** CD-ROM | disk | FTP | other *** search
/ Playboy Electronic Datebook / Playboy Electronic Datebook - Disk 1.img / VERSION.IN_ / VERSION.IN
Text File  |  1993-10-22  |  2KB  |  48 lines

  1. ''************************************************************
  2. ''* version.inc
  3. ''************************************************************
  4.  
  5.  
  6.  
  7. ''(for version function)
  8. CONST REPLACE_QUIET  = 0
  9. CONST REPLACE_NOTIFY = 1
  10. CONST INIT_VER_POS   = 1
  11. CONST CUR_VER_POS    = 2
  12. CONST PAR_FILE_POS   = 3
  13.  
  14.  
  15. '' User Defined types ----------------------------------------------------------------
  16.  
  17. TYPE VERSION
  18.     FileName AS STRING * 65
  19.     InitVer AS STRING * 20
  20.     CurVer AS STRING  * 20
  21. END TYPE
  22.  
  23. DECLARE FUNCTION GetFileInitVer(szFilePath$) AS STRING
  24. DECLARE FUNCTION GetFileCurVer(szFilePath$) AS STRING
  25. DECLARE FUNCTION TestRange(szChildInitVer AS STRING, szChildCurVer AS STRING, szParInitVer AS STRING, szParCurVer AS STRING) AS INTEGER
  26. DECLARE FUNCTION TestDupe(szChildInitVer AS STRING, szChildCurVer AS STRING, szParInitVer AS STRING, szParCurVer AS STRING) AS INTEGER
  27. DECLARE FUNCTION Version(szDest$, szIni$, szIniSect$) AS INTEGER
  28. DECLARE FUNCTION ContentVersion(szDest$, szIni$, szIniSect$) AS INTEGER
  29.  
  30. CONST   VER_INI_KEY_THEME = "<THEME>"
  31. CONST   INI_KEY_VERSION = "Version"
  32. CONST   INI_SECT_CONTENT_VERSION = "Content Version"
  33. CONST   INI_SECT_CONTENT_VERSION_APP = "Content Version App"
  34. CONST   VERSION_CAPTION = "Version Error"
  35. CONST   VERSION_BAD_CONTENT = " is not supported by the application being installed. This content pack cannot be used with this application."
  36. CONST   VERSION_BAD_GENERAL = "One or more installed content packs are not supported by this version of the application."
  37. CONST   VERSION_QUIT = "Installing this application may cause problems.  Do you want to continue?"
  38. CONST   VERSION_APPFILE_NC = " is incompatible with the file "
  39. CONST   VERSION_APPFILE_OLD = ", which is already installed. This file will not be installed."
  40. CONST   VERSION_APPFILE_NEW = " , which needs to be installed.  Please update this file."
  41. CONST   VERSION_THEMEFILE_OLD = " is an older version than the application being installed will support. Please update this file."
  42. CONST   VERSION_THEMEFILE_NEW = " is a newer version than the application being installed will support. Please update the application files."
  43.  
  44. GLOBAL bDDDInData%
  45.  
  46.     bDDDInData% = 0
  47.  
  48.